using System;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities {
    public class Shape {
        private IContent mContent;

        private int mIndex;

        public IContent Content {
            get {
                return mContent;
            }
            set {
                mContent = value;
            }
        }

        public int Index {
            get {
                return mIndex;
            }
            set {
                Check.Ensure(value > 0, "Index value cannot be less than zero.", new ArgumentOutOfRangeException());
                mIndex = value;
            }
        }
    }
}
